Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] Add table-footer-group CSS #11264

Merged
merged 4 commits into from
May 7, 2018

Conversation

t49tran
Copy link
Contributor

@t49tran t49tran commented May 7, 2018

This PR add classes prop to TableFooter component and wrap it with the HOC withStyles so the 3 table section component TableHead, TableBody and TableFooter is consistent as per discussion in #11182 (already closed).

In this PR:
--- update TableFooter with classes and className props.
--- update TableFooter typing
--- update TableFooter test to test for root classes.

@mbrookes
Copy link
Member

mbrookes commented May 7, 2018

@t49tran You need to run yarn docs:api to update the API docs.

@t49tran
Copy link
Contributor Author

t49tran commented May 7, 2018

I completely miss that @mbrookes , will update it

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -12,9 +20,9 @@ class TableFooter extends React.Component {
}

render() {
const { component: Component, ...other } = this.props;
const { classes, className: classNameProp, component: Component, ...other } = this.props;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that we need the intermediary classNameProp variable.

@oliviertassinari oliviertassinari added new feature New feature or request component: table This is the name of the generic UI component, not the React module! labels May 7, 2018
@oliviertassinari oliviertassinari self-assigned this May 7, 2018
@oliviertassinari oliviertassinari changed the title Table footer add classes prop [Table] Add table-footer-group May 7, 2018
@oliviertassinari oliviertassinari changed the title [Table] Add table-footer-group [Table] Add table-footer-group CSS May 7, 2018
@oliviertassinari oliviertassinari merged commit e214a2f into mui:v1-beta May 7, 2018
@t49tran t49tran deleted the table-footer-add-style branch May 21, 2018 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants